package sjtu.ist.warehouse4ws.service;

import java.util.List;

import sjtu.ist.warehouse4ws.dao.PermissionDao;

import sjtu.ist.warehouse4ws.model.Epcunit;
import sjtu.ist.warehouse4ws.model.Permission;

public class PermissionServiceImpl implements PermissionService{
	private PermissionDao permissionDao;


	public void setPermissionDao(PermissionDao permissionDao) {
		this.permissionDao = permissionDao;
	}


	@Override
	public boolean addPermission(Permission permission) {
		
		this.permissionDao.save(permission);
		// TODO Auto-generated method stub
		return false;
	}


	@Override
	public List<Permission> getPermissionListById(String id) {
		// TODO Auto-generated method stub
		return (List<Permission>)permissionDao.findById(id);
	}

}
